package com.fjl.enumtest;

public class EnumTest
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		/**
		 * 测试枚举比较,使用equal和==
		 */
		GameEnum s1 = GameEnum.BIG;
		GameEnum s2 = GameEnum.BIG;
		GameEnum ss1 = GameEnum.SMALL;
		System.out.println("s1 == s2：" + (s1 == s2));
		System.out.println("s1.equals(s2)：" + (s1.equals(s2)));

		System.out.println("s1 == ss1：" + (s1 == ss1));
		System.out.println("s1.equals(ss1)：" + (s1.equals(ss1)));
		
		LabelType s3 = new LabelType(256);
		LabelType s4 = s3;
		System.out.println("s3 == s4：" + (s3 == s4));
		System.out.println("s3.equals(s4)：" + (s3.equals(s4)));
	}

}
